package com.itheima.jobs;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.service.OrderSettingService;


public class ClearOrderSettingJob {
    @Reference
    private OrderSettingService orderSettingService;
    public void clearOutOfDateOrdersetting(){
       //删除过时的预约项设置
        if (orderSettingService != null) {
            orderSettingService.deleteByCurrentTime();
        }
    }
}
